﻿@model Stertex.Models.GeneratePasswordModel

@{
    ViewBag.Title = "CreatePassword";
}

<h2>CreatePassword</h2>
<link href="@Url.Content("~/Content/pwstrenght.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/password_strength_plugin.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#Password").passStrength({
            shortPass: "top_shortPass",
            badPass: "top_badPass",
            goodPass: "top_goodPass",
            strongPass: "top_strongPass",
            baseStyle: "top_testresult",
            userid: "uid",
            messageloc: 1
        });


    });
</script>

@using (Html.BeginForm("CreatePassword", "Account",  FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>GeneratePasswordModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            
            @Html.EditorFor(model => model.Password)
            <input type="hidden" name="uid" id="uid" value="test" />
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>

      
        <div class="editor-field">
            @Html.HiddenFor(model => model.Key)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
